using UnityEngine;
using System.Collections;

public class Camera : MonoBehaviour 
{
    public float velocity;
    public long frame;

    CharBehaviour character;


	// Use this for initialization
	void Start () 
    {
        frame = 0;
        velocity = 0.0005f;
        character = GameObject.Find("Character").GetComponent<CharBehaviour>();
	}
	
	// Update is called once per frame
	void Update () 
    {
        transform.position=new Vector3(character.transform.position.x,transform.position.y,transform.position.z);
	}
}
